<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.webservice.SendLoginService"%>
<%@ page import="java.io.*"%>
	 <%
		SendLoginService sps = new SendLoginService();
	    String s = sps.sendLogin("1", "1", "getHuman,SystemID,epm");
	    String[] epm = s.split(",");
	 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>预案管理系统</title>
  <link href="css/MainStyle.css" rel="stylesheet" type="text/css" />
    <link href="css/LayoutStyle.css" rel="stylesheet" type="text/css" />
    <link href="css/ColorStyle.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../../js/ext-base.js"></script>
	<script type="text/javascript" src="../../../js/ext-all.js"></script>
	
	
</head>
<body>
	
	  <div class="login_Layout">
        <div class="login_logo"><img src="images/images_02.jpg" width="496" height="68" /></div>
        <div class="login_main">
            <div class="login_main_left"></div>
            <ul>
                <li><a href="#"><img src="images/images_03.jpg" width="129" height="94" /></a></li>
                <li><a href="#"><img src="images/images_04.jpg" width="129" height="94" /></a></li>
                <li><a href="#"><img src="images/images_05.jpg" width="129" height="94" /></a></li>
                <li><a href="#"><img src="images/images_06.gif" width="129" height="94" /></a></li>
            </ul>
            <div class="login_main_right"><img src="images/images_12.jpg" width="9" height="107" /></div>
        </div>
        <form name="myform" action="${pageContext.request.contextPath}/j_spring_security_check" id="form1" method="post">
        <div class="login_input">
            <ul>
                <li>
                    <div class="login_bg">
                    <div class="input_left">用户名</div>
                    <input tabindex="1" id="j_username" type="text" name="j_username"
					value="${sessionScope['SPRING_SECURITY_LAST_USERNAME']}" class="login_content" />
					<!--
					<input type="image" src="${pageContext.request.contextPath}/images/images_08.jpg" class="login_Submint"
					name="submit" tabindex="3" title="登录" value="登录"/>
                    -->
                    <input type="submit" tabindex="3"  name="submit" class="login_Submint" value="登录" />
                    </div>
                </li>
                <li>
                    <div class="login_bg">
                    <div class="input_left">密&nbsp;&nbsp;码</div>
                    <input tabindex="2"  type="password" id="j_password" name="j_password" class="login_content"/>
                    <input type="reset" tabindex="4"  class="login_Submint login_Submint2" value="重置"/>
                    </div>
                     <!-- <input id= "_spring_security_remember_me"  name= "_spring_security_remember_me"  type= "checkbox"  value= "true" />两周之内不必登陆<br /> -->
                </li>
                <li>
                <span style="color: #900; font-size: 13px;">${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message}</span>
                </li>
            </ul>
        </div>
        </form>
         <script type="text/javascript">
  			var username = '<%=epm[0]%>';
 		    var password='<%=epm[1]%>';
  			document.getElementById("j_username").value = username; 
  			document.getElementById("j_password").value = password; 
  			document.myForm.submit();
  		</script>
        <div class="login_foot">
        </div>
    </div>
   
</body>
</html>